home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / set_modify_command < prev    next >
Text File  |  2001-04-04  |  1KB  |  34 lines

  1. SYNOPSIS
  2.         object set_modify_command(object)
  3.         object set_modify_command(string)
  4.         object set_modify_command(int)
  5.  
  6. DESCRIPTION
  7.         All commands for the current object (that must obviously be
  8.         interactive) will be passed to ob->modify_command() before
  9.         actually being executed. The argument can be passed an object
  10.         or an object_name.
  11.  
  12.         When set_modify_command() was called, the parser won't expand
  13.         the standard abbreviations n,e,s,w,nw,sw,ne,se for that user
  14.         anymore, nor use any hook set for this.
  15.  
  16.         0 as argument will stop the command modification and reinstall
  17.         the standard abbreviations.
  18.         -1 as argument will just return the object previously set.
  19.  
  20.         The return value is the object that was previously set with
  21.         set_modify_command(), if any.
  22.  
  23.         This mechanism is intended to expand aliases on quicktypers
  24.         or the like.
  25.  
  26. HISTORY
  27.         Up to 3.2.1@108 the lfun called was hardcoded as
  28.         'modify_command'. The hook H_MODIFY_COMMAND_FNAME introduced
  29.         in 3.2.1@109 allows to change the name.
  30.  
  31.  
  32. SEE ALSO
  33.         command(E), hooks(C), modify_command(A)
  34.